package com.xiaodimall.beforesys.service;

import com.xiaodimall.utils.PageQueryUtil;
import com.xiaodimall.utils.PageResult;
import com.xiaodimall.utils.Result;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * @author wyc
 * @description
 * @ClassName AdminOrderService
 * @date 2022/11/29 14:10
 */
public interface OrderService {

    //保存订单
    String saveOrder(HttpSession httpSession);

    //根据订单编号查询出订单详情
    String getOrderDetailByOrderNo(HttpServletRequest request, String orderNo, HttpSession httpSession);

    //我的订单列表
    String getMyOrders(@RequestParam Map<String, Object> params,
                           HttpServletRequest request,
                           HttpSession httpSession);


    //取消订单操作
    String cancelOrder(String orderNo, HttpSession httpSession);

    //确认收货
    String finishOrder(String orderNo, HttpSession httpSession);



}
